// EventHub
import mitt from 'mitt';
import { Emitter } from 'mitt'
const emitter: Emitter = mitt();

const eventHub = {
  $on: emitter.on,
  $off: emitter.off,
  $emit: emitter.emit
};

export default eventHub